package com.homework.strategy;

/**
 * @Author : Zan
 * @Create : 2024/5/29 21:12
 * @ClassName : JudgeManager
 * @Description : 判题管理（简化调用）- 环境类
 */
public class JudgeManager {

    private JudgeStrategy judgeStrategy;

    public JudgeManager(JudgeStrategy judgeStrategy) {
        this.judgeStrategy = judgeStrategy;
    }

    /**
     * 执行判题管理
     *
     * @return
     */
    public void doJudgeManager() {
        System.out.println("==================执行判题管理==================");
        judgeStrategy.doJudge();
    }
}
